package com.taiyuan.zfmvp.controller;

import net.sf.json.JSONObject;

import java.util.List;

/**
 * @param request
 * @Author: zhoufang@si-tech.com.cn
 * @Descriiption:
 * @Date 2021/9/8
 * @return
 */
public class TestStudent extends  Test{

    public  Integer getLenght()
    {
        return new Integer(5);
    }

    public static void main(String[] args)
    {
       /* Test test = new Test();
        TestStudent sub = new TestStudent();*/
        //System.out.println(test.getLenght().toString() + "," +sub.getLenght());



        String response = "{\"status\":\"1\",\"info\":\"OK\",\"infocode\":\"10000\",\"count\":\"1\",\"route\":{\"origin\":\"116.722313,39.970861\",\"destination\":\"116.657129,39.887989\",\"paths\":[{\"distance\":\"14984\",\"duration\":\"4510\",\"steps\":[{\"instruction\":\"向东骑行43米右转\",\"orientation\":\"东\",\"road_name\":\"\",\"step_distance\":43},{\"instruction\":\"沿东轴街向南骑行621米右转\",\"orientation\":\"南\",\"road_name\":\"东轴街\",\"step_distance\":621},{\"instruction\":\"沿小堡工业区路向西骑行1037米左转\",\"orientation\":\"西\",\"road_name\":\"小堡工业区路\",\"step_distance\":1037},{\"instruction\":\"向南骑行425米右转\",\"orientation\":\"南\",\"road_name\":\"\",\"step_distance\":425},{\"instruction\":\"沿徐宋西四街向西骑行163米左转\",\"orientation\":\"西\",\"road_name\":\"徐宋西四街\",\"step_distance\":163},{\"instruction\":\"向南骑行934米右转\",\"orientation\":\"南\",\"road_name\":\"\",\"step_distance\":934},{\"instruction\":\"沿潞邑东路向南骑行4379米右转\",\"orientation\":\"南\",\"road_name\":\"潞邑东路\",\"step_distance\":4379},{\"instruction\":\"沿通胡大街向西骑行2910米左转\",\"orientation\":\"西\",\"road_name\":\"通胡大街\",\"step_distance\":2910},{\"instruction\":\"沿故城东路向南骑行484米\",\"orientation\":\"南\",\"road_name\":\"故城东路\",\"step_distance\":484},{\"instruction\":\"沿故城东路向南骑行213米向右前方行驶\",\"orientation\":\"南\",\"road_name\":\"故城东路\",\"step_distance\":213},{\"instruction\":\"沿玉桥中路向南骑行1153米右转\",\"orientation\":\"南\",\"road_name\":\"玉桥中路\",\"step_distance\":1153},{\"instruction\":\"沿运河西大街向西骑行1786米直行\",\"orientation\":\"西\",\"road_name\":\"运河西大街\",\"step_distance\":1786},{\"instruction\":\"沿通朝大街向西骑行15米左转\",\"orientation\":\"西\",\"road_name\":\"通朝大街\",\"step_distance\":15},{\"instruction\":\"沿九棵树西路向西南骑行521米左转\",\"orientation\":\"西南\",\"road_name\":\"九棵树西路\",\"step_distance\":521},{\"instruction\":\"沿九棵树街向东骑行206米右转\",\"orientation\":\"东\",\"road_name\":\"九棵树街\",\"step_distance\":206},{\"instruction\":\"向南骑行15米左转\",\"orientation\":\"南\",\"road_name\":\"\",\"step_distance\":15},{\"instruction\":\"向东骑行79米到达目的地\",\"orientation\":\"东\",\"road_name\":\"\",\"step_distance\":79}]}]}}";
        JSONObject jsonObject = JSONObject.fromObject(response);
        System.out.println(jsonObject.toString());
    }
}
